package com.company.gas.mapper;


import com.company.gas.pojo.IC;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

//mybatis的mapper类
@Mapper
@Repository
public interface ICMapper {

    List<IC> selectAll();

    IC queryICRemainById(@Param(value = "icId") String icId);

    int newIC(@Param(value = "icId") String icId, @Param(value = "cusId") String cusId,
              @Param(value = "remainder") String remainder, @Param(value = "flag") Integer flag,
              @Param(value = "createTime") Date createTime, @Param(value = "createBy") String createBy,
              @Param(value = "modifyTime") Date modifyTime, @Param(value = "modifyBy") String modifyBy);

    int updateIC(@Param(value = "cusId") String cusId,
                 @Param(value = "remainder") String remainder,
                 @Param(value = "modifyTime") Date modifyTime, @Param(value = "modifyBy") String modifyBy);

    int deleteIC(@Param(value = "icId") String icId);

}